import Vue from 'vue'
import SvgIcon from '@/components/np/SvgIcon'// svg component

// register globally
Vue.component('np-svg-icon', SvgIcon)

// 穿透文件夹
const req = require.context('./', true, /\.svg$/)
const requireAll = requireContext => {
  return requireContext.keys().map(requireContext)
}
requireAll(req)
